/**
 * Created by yangxin on 2016/11/23.
 */
import Im from 'components/im/im'
import Contacts from 'components/im/contacts'
import My from 'components/user/my'
import MyDetail from 'components/user/my-detail'
import Login from 'components/user/login'
import Register from 'components/user/register'
import Forget from 'components/user/forget'
import Reset from 'components/user/reset'
import Home from 'components/home/home'
import PublishHome from 'components/home/publish-home'
import NewsGrade from 'components/grade/news'
import SearchGrade from 'components/grade/search'
import CreateGrade from 'components/grade/create'
import GradeInfo from 'components/grade/grade-info'
import GradeDetail from 'components/grade/grade-detail'
import UserStuInfo from 'components/grade/user-stu-info'
import UserParent from 'components/grade/user-parent'
import UserTeacher from 'components/grade/user-teacher'
import StuInfo from 'components/grade/stu-info'
import AddRole from 'components/grade/add-role'
import EditStuInfo from 'components/grade/edit-stu-info'
import DynamicDetail from 'components/home/dynamic-detail'
import Course from 'components/grade/course'
import ChooseSchool from 'components/grade/choose-school'
import ChooseGrade from 'components/grade/choose-grade'
import ChooseCls from 'components/grade/choose-cls'
import AddCourse from 'components/grade/add-course'
import CreateRole from 'components/grade/create-role'
import CreateRoleParent from 'components/grade/create-role-parent'
import GradeMember from 'components/grade/grade-member'
import GradeCode from 'components/grade/grade-code'
import UserHome from 'components/grade/user-home'
import Schedule from 'components/grade/schedule'
import ApplyJoinGrade from 'components/grade/apply-join-grade'
import ApplyReject from 'components/grade/apply-reject'
import GradeMemberRole from 'components/grade/grade-member-role'
import Search from 'components/home/search'
import PublishType from 'components/home/publish-type'
import Publish from 'components/home/publish'
import Recipient from 'components/home/recipient'
import ChooseRecipient from 'components/home/choose-recipient'
import Settings from  'components/user/settings'
import PrivateSet from 'components/user/private-set'
import EditName from 'components/user/edit-name'
import About from 'components/user/about'
import MyDynamicList from 'components/home/my-dynamic-list'
import Chat from 'components/im/chat'
import Debug from 'components/user/debug'

import Feedback from 'components/user/feedback'
import Protocol from 'components/user/protocol'
import Account from 'components/user/account'

// 配置路由
let routes = [
  {
    name: 'home',
    path: '/',
    component: Home,
  },
  {
    name: 'login',
    path: '/login',
    component: Login,
  },
  {
    name: 'register',
    path: '/register',
    component: Register,
  },
  {
    name: 'forget',
    path: '/forget',
    component: Forget,
  },
  {
    name: 'reset',
    path: '/reset',
    component: Reset,
  },
  {
    name: 'publish-home',
    path: '/publish-home',
    component: PublishHome,
  },
  {
    name: 'im',
    path: '/im',
    component: Im,
  },
  {
    name: 'contacts',
    path: '/contacts',
    component: Contacts,
  },
  {
    name: 'my',
    path: '/my',
    component: My,
  },
  {
    name: 'mydetail',
    path: '/mydetail',
    component: MyDetail,
  },
  {
    name: 'news',
    path: '/news',
    component: NewsGrade,
    meta: {
      enterClass: 'fadeInUp',
      leaveClass: 'fadeOutDown'
    }
  },
  {
    name: 'search',
    path: '/search',
    component: SearchGrade,
  },
  {
    name: 'create',
    path: '/create',
    component: CreateGrade,
  },
  {
    name: 'grade-info',
    path: '/grade-info',
    component: GradeInfo,
  },
  {
    name: 'grade-detail',
    path: '/grade-detail',
    component: GradeDetail,
  },
  {
    name: 'user-stu-info',
    path: '/user-stu-info',
    component: UserStuInfo,
  },
  {
    name: 'user-parent',
    path: '/user-parent',
    component: UserParent,
  },
  {
    name: 'stu-info',
    path: '/stu-info',
    component: StuInfo,
  },
  {
    name: 'user-teacher',
    path: '/user-teacher',
    component: UserTeacher,
  },
  {
    name: 'add-role',
    path: '/add-role',
    component: AddRole,
  },
  {
    name: 'edit-stu-info',
    path: '/edit-stu-info',
    component: EditStuInfo,
  },
  {
    name: 'dynamic-detail',
    path: '/dynamic-detail',
    component: DynamicDetail
  },
  {
    name: 'course',
    path: '/course',
    component: Course,
  },
  {
    name: 'choose-school',
    path: '/choose-school',
    component: ChooseSchool,
  },
  {
    name: 'choose-grade',
    path: '/choose-grade',
    component: ChooseGrade,
  },
  {
    name: 'choose-cls',
    path: '/choose-cls',
    component: ChooseCls,
  },
  {
    name: 'add-course',
    path: '/add-course',
    component: AddCourse,
  },
  {
    name: 'create-role',
    path: '/create-role',
    component: CreateRole,
  },
  {
    name: 'create-role-parent',
    path: '/create-role-parent',
    component: CreateRoleParent,
  },
  {
    name: 'grade-member',
    path: '/grade-member',
    component: GradeMember,
  },
  {
    name: 'grade-code',
    path: '/grade-code',
    component: GradeCode,
  },
  {
    name: 'user-home',
    path: '/user-home',
    component: UserHome,
  },
  {
    name: 'schedule',
    path: '/schedule',
    component: Schedule,
  },
  {
    name: 'search-list',
    path: '/search-list',
    component: Search,
  },
  {
    name: 'publish-type',
    path: '/publish-type',
    component: PublishType,
  },
  {
    name: 'publish',
    path: '/publish',
    component: Publish,
  },
  {
    name: 'recipient',
    path: '/recipient',
    component: Recipient,
  },
  {
    name: 'choose-recipient',
    path: '/choose-recipient',
    component: ChooseRecipient,
  },
  {
    name: 'settings',
    path: '/settings',
    component: Settings,
  },
  {
    name: 'private-set',
    path: '/private-set',
    component: PrivateSet,
  },
  {
    name: 'edit-name',
    path: '/edit-name',
    component: EditName,
  },
  {
    name: '/my-dynamic-list',
    path: '/my-dynamic-list',
    component: MyDynamicList,
  },
  {
    name: 'chat',
    path: '/chat',
    component: Chat,
  },
  {
    name: 'debug',
    path: '/debug',
    component: Debug,
  },
  {
    name: 'feedback',
    path: '/feedback',
    component: Feedback,
  },
  {
    name: 'protocol',
    path: '/protocol',
    component: Protocol,
  },
  {
    name: 'apply-join-grade',
    path: '/apply-join-grade',
    component: ApplyJoinGrade,
  },
  {
    name: 'apply-reject',
    path: '/apply-reject',
    component: ApplyReject,
  },
  {
    name: 'grade-member-role',
    path: '/grade-member-role',
    component: GradeMemberRole,
  },
  {
    name: 'about',
    path: '/about',
    component: About,
  },
  {
    name: 'account',
    path: '/account',
    component: Account,
  },
]

export default routes


// WEBPACK FOOTER //
// ./src/plugins/routes.js
